package org.victoriest;

import org.apache.log4j.Logger;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class VictoriestServerEntrance {

	public static Logger log = Logger.getLogger(VictoriestServerEntrance.class);

	public static ConfigurableApplicationContext context;

	public static void main(String[] args) {
//		Properties sysProp = new Properties();
//		FileInputStream inputFile;
//		try {
//			String path = VictoriestServerEntrance.class.getResource(
//					"/properties/victoriest.properties").getPath();
//			System.out.println(path);
//			log.info(path);
//			inputFile = new FileInputStream(path);
//			sysProp.load(inputFile);
//			inputFile.close();
//			System.setProperties(sysProp);
//		} catch (FileNotFoundException ex) {
//			ex.printStackTrace();
//		} catch (IOException ex) {
//			ex.printStackTrace();
//		}
		context = new ClassPathXmlApplicationContext("classpath:victoriest-server.xml");
	}
}
